<?php
namespace app\common\model;

class Extract extends CommonModel
{
    //主键
    // protected $pk = 'feedback_id';

    //处理状态
    const STATUS_UNTREATED = 1;
    const STATUS_SOLVE     = 2;
    const STATUS_REJECT    = 3;
    public static $statusLabels = [
        self::STATUS_UNTREATED => '竞猜中',
        self::STATUS_SOLVE     => '竞猜完',
        self::STATUS_REJECT    => '撤单',
    ];

    /**
     * 时间字段自动转换
     */
    protected $dateFormat = 'Y-m-d H:i:s';

    protected $type = [
        'create_time' => 'timestamp',
        'update_time' => 'timestamp',
    ];

}